package com.wish.banking.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wish.banking.entity.TJrProduct;
import com.wish.banking.entity.vo.ProductVo;
import com.wish.banking.mapper.TJrProductMapper;
import com.wish.banking.service.ITJrProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 高露雯:金融产品表 服务实现类
 * </p>
 *
 * @author benjamin
 * @since 2022-04-05
 */
@Service
public class TJrProductServiceImpl extends ServiceImpl<TJrProductMapper, TJrProduct> implements ITJrProductService {

    @Override
    public PageInfo<ProductVo> productList(ProductVo qv) {
        PageHelper.startPage(qv.getPageNum(), qv.getPageSize());
        List<ProductVo> list = getBaseMapper().productList(qv);
        PageInfo<ProductVo> pg = new PageInfo<>(list);
        return pg;
    }

    @Override
    public ProductVo getMsg(ProductVo qv) {
        return getBaseMapper().getProductMsg(qv);
    }

    @Override
    public int letuout(ProductVo qv) {
        return getBaseMapper().letuout(qv);
    }

    @Override
    public List<TJrProduct> getCapName() {
        return getBaseMapper().getCapName();
    }
}
